$border-color: #eee;
$cards-gap: 20px;

.marketplace-reviews-cards__container {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 24px;

	.marketplace-reviews-cards__reviews {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.marketplace-reviews-cards__reviews-title {
		font-family: Recoleta, $sans;
		color: var(--studio-gray-80);
		font-size: $font-title-medium;
	}

	.marketplace-reviews-cards__reviews-subtitle {
		font-family: "SF Pro Text", $sans;
		color: var(--studio-gray-60);
		font-size: $font-body-small;
	}

	.marketplace-reviews-cards__read-all {
		font-family: "SF Pro Text", $sans;
		font-size: $font-body-small;
	}

	.marketplace-reviews-cards__content {
		display: flex;
		gap: $cards-gap;
	}

	.rating .rating__overlay .is-empty,
	.rating .rating__star-outline .is-empty {
		fill: var(--studio-yellow-20);
	}

	.rating .rating__overlay .gridicon,
	.rating .rating__star-outline .gridicon {
		fill: var(--studio-yellow-20);
	}

	.full-width-section & {
		.marketplace-reviews-cards__reviews-title {
			font-size: rem(40px);
		}
		.marketplace-reviews-cards__reviews-subtitle {
			font-size: $font-body-large;
		}
		.marketplace-reviews-cards__reviews {
			align-items: flex-end;
		}
		.marketplace-reviews-cards__reviews-header {
			margin-bottom: 36px;
		}
	}
}


.marketplace-reviews-card__container {
	padding: 24px 30px;

	display: flex;
	flex-direction: column;
	gap: 16px;
}

.marketplace-reviews-card__container,
.marketplace-reviews-card__leave-a-review,
.marketplace-reviews-card__empty-container {
	border: 1px solid $border-color;
	border-radius: 4px;
	width: calc((100% - $cards-gap)/2); // Half of the available space
	box-sizing: border-box;

	.full-width-section & {
		background: var(--studio-white);
		border-color: transparent;
		border-radius: 8px;
		padding: 18px 16px 26px;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 0;

		.marketplace-reviews-card__header {
			font-family: inherit;
			font-size: $font-body-small;
			font-weight: 500;
			margin-bottom: 8px;
		}
		.marketplace-reviews-card__empty-subtitle {
			text-align: left;
		}

		&.marketplace-reviews-card__leave-a-review {
			&:active, &:hover {
				border-color: var(--studio-blue-50);
			}
		}
	}
}

.marketplace-reviews-card__review-data {
	font-family: "SF Pro Text", $sans;
	color: var(--studio-gray-80);
	font-size: $font-body-small;
	line-height: 20px;

	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.marketplace-reviews-card__author {
	font-family: "SF Pro Text", $sans;
	color: var(--studio-gray-60);
	font-size: $font-body-extra-small;
	line-height: 20px;
	font-weight: 500;

	.marketplace-reviews-card__author-name {
		color: var(--studio-black);
		font-family: Inter, $sans;
	}
}

.marketplace-reviews-card__leave-a-review {
	display: flex;
	gap: 8px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 40px;
	cursor: pointer;

	.marketplace-reviews-card__leave-a-review-message {
		font-family: "SF Pro Text", $sans;
		color: var(--studio-gray-100);
		font-size: $font-body;
		font-weight: 500;
		line-height: 24px;
		text-align: center;
	}
}

.marketplace-reviews-card__empty-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 30px;

	.marketplace-reviews-card__empty-title {
		font-family: Recoleta, $sans;
		color: var(--studio-gray-100);
		font-size: $font-title-medium;
	}

	.marketplace-reviews-card__empty-subtitle {
		font-family: "SF Pro Text", $sans;
		color: var(--studio-gray-60);
		font-size: $font-body-small;
		text-align: center;
	}
}
